// UEEntityOsnapMode.cpp: implementation of the UEEntityOsnapMode class.
//
//////////////////////////////////////////////////////////////////////



#include "stdafx.h"
#include "UEEntityOsnapMode.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
namespace Ue3dSolid
{
	UEEntityOsnapMode::UEEntityOsnapMode()
	{
		this->m_pGlyph = NULL;
		this->m_pRCOsnapInfo = NULL;
		this->m_strGlobalModel = new TCHAR[128];
		this->m_strLocalModel = new TCHAR[128];
		this->m_strTooltip = new TCHAR[128];
	}
	
	UEEntityOsnapMode::~UEEntityOsnapMode()
	{
		if ( this->m_pGlyph )
			delete this->m_pGlyph;
		if ( this->m_strGlobalModel )
			delete this->m_strGlobalModel;
		if ( this->m_strLocalModel )
			delete this->m_strLocalModel;
		if ( this->m_strTooltip )
			delete this->m_strTooltip;
	}
	
	const char* UEEntityOsnapMode::localModeString() const
	{
		return this->m_strLocalModel;
	}
	
	const char* UEEntityOsnapMode::globalModeString() const
	{
		return this->m_strGlobalModel;
	}
	
	const AcRxClass* UEEntityOsnapMode::entityOsnapClass() const
	{
		return this->m_pRCOsnapInfo;
	}
	
	AcGiGlyph* UEEntityOsnapMode::glyph() const
	{
		return this->m_pGlyph;
	}
	
	const char* UEEntityOsnapMode::tooltipString() const
	{
		return this->m_strTooltip;
	}
	
	void UEEntityOsnapMode::SetGlobalModelString ( LPCTSTR strGlobalModel )
	{
		strcpy ( this->m_strGlobalModel, strGlobalModel );
	}
	
	void UEEntityOsnapMode::SetLocalModelString ( LPCTSTR strLocalModel )
	{
		strcpy ( this->m_strLocalModel, strLocalModel );
	}
	
	void UEEntityOsnapMode::SetTooltipString ( LPCTSTR strTooltip )
	{
		strcpy ( this->m_strTooltip, strTooltip );
	}
	
	void UEEntityOsnapMode::SetGlyph ( AcGiGlyph* pGlyph )
	{
		this->m_pGlyph = pGlyph;
	}
	
	void UEEntityOsnapMode::SetEntityOsnapClass ( AcRxClass* pRCOsnapInfo )
	{
		this->m_pRCOsnapInfo = pRCOsnapInfo;
	}
	
}
